<div class="page" style="min-height: 500px;">
  <div class="page-container">
    <div class="container">
      <div class="row">
        <div class="span12">
          <div class="btn-group pull-right">
            <a href="<?php echo base_url('profile/' . $user_data['user_name']); ?>" class="btn active">Profile</a>
            <a href="<?php echo base_url('wall/' . $user_data['user_name']); ?>" class="btn">Wall</a>
            <?php if (($this->current_user['user_name'] == $user_data['user_name']) || ($this->is_admin)) { ?>
              <a href="<?php echo base_url('activity/' . $user_data['user_name']); ?>" class="btn">Activity</a>
            <?php } ?>
            <?php if (($this->is_admin) && (!check_is_admin($user_data['user_name']))) { ?>
              <a onclick="return confirm_action('Disable this user ?');" title="Disable this user. Incase of Resign etc.." href="<?php echo base_url('users/disable/' . $user_data['user_name']); ?>" class="btn">Disable</a>
            <?php } ?>
          </div>
          <h4 class="header">Profile : <?php echo $user_data['user_display_name']; ?></h4>
        </div>
        <div class="span3">
          <div class="img-rounded thumbnail">
            <img style="width: 250px;" border="0" src="<?php echo base_url('assets/photos/' . $user_data['user_image']); ?>">
          </div>
          <?php if ($user_data['user_id'] == $this->current_user['user_id']) { ?>
            <a title="Goto change photo" href="<?php echo base_url('settings/photo'); ?>" style="text-decoration: none; cursor: pointer; margin-left: 60px;">Change My Photo</a>
          <?php } ?>
        </div>
        <div class="span9">
          <span class="pull-right" style="cursor: pointer; margin-top: 20px;" title="Points gained by various activites on innoTweets">
            <span style="font-size: xx-large; color: dodgerblue;"><?php echo (int) $user_data['user_likes_level']; ?></span>
            <span style="font-size: small; color: #CCC;">POINTS</span>
          </span>
          <h4 style="word-break: break-all;">
            <?php echo $user_data['user_display_name']; ?>
            &nbsp;
            <span style="color: #777; font-size: smaller;">(@<?php echo $user_data['user_name']; ?>)</span>
            &nbsp;
            <?php if (is_online($user_data['user_id'])) { ?>
              <img src="<?php echo site_url('assets/img/online_button_tiny.png'); ?>" title="Online"/>
            <?php } else { ?>
              <img src="<?php echo site_url('assets/img/offline_button_tiny.png'); ?>" title="Offline"/>
              <?php if ($user_data['user_online_mode'] == 1) { ?>
                &nbsp;&nbsp;<span style="font-size: xx-small;">(Last Seen : <?php echo time_ago($user_data['user_online_date']); ?> ago)</span>
              <?php } ?>
            <?php } ?>
          </h4>
          <h6><?php echo $user_data['user_position']; ?></h6>
        </div>
        <div class="span9">
          <blockquote style="word-break: break-all;"><?php echo $user_data['user_about_me']; ?></blockquote>
        </div>
        <div class="span9" style="max-height: 100px;">
          <div class="row-fluid">
            <div class="span3 knob">
              <h4>Tweets</h4>
              <input title="Percentage of likes gained from tweets, replies & comments" style="cursor: pointer;" type="text" value="<?php echo @round(($tweet_like_count / $all_likes_count) * 100); ?>" data-width="100" data-fgColor="#14B8D4" data-readOnly="true" class="dial"/>
            </div>
            <div class="span3 knob">
              <h4>Albums</h4>
              <input title="Percentage of likes gained from albums & photos" style="cursor: pointer;" type="text" value="<?php echo @round(($album_like_count / $all_likes_count) * 100); ?>" data-width="100" data-fgColor="#EA494A" data-readOnly="true" class="dial"/>
            </div>
            <div class="span3 knob">
              <h4>Polls</h4>
              <input title="Percentage of likes gained from polls" style="cursor: pointer;" type="text" value="<?php echo @round(($poll_like_count / $all_likes_count) * 100); ?>" data-width="100" data-fgColor="#FFA93C" data-readOnly="true" class="dial"/>
            </div>
            <div class="span3 knob">
              <h4>Likes Level</h4>
              <input title="Percentage of likes gained on innoTweets" style="cursor: pointer;" type="text" value="<?php echo @round(($total_likes_count / $all_likes_count) * 100); ?>" data-width="100" data-fgColor="#333" data-readOnly="true" class="dial"/>
            </div>
          </div>
        </div>
        <div class="clearfix"></div>
      </div>
    </div>
    <div class="container tables divide">
      <div class="row">
        <div class="span3"></div>
        <div class="span9">
          <?php if ($user_data['user_id'] == $this->current_user['user_id']) { ?>
            <a title="Goto edit profile" href="<?php echo base_url('settings/profile'); ?>" style="text-decoration: none; cursor: pointer; float: right; margin-top: -20px;">Edit My Profile</a>
          <?php } ?>
          <table class="table">
            <tbody>
              <tr>
                <td><b>Career</b></td>
                <td></td>
              </tr>
              <tr>
                <td width="100">Skills / Tools : </td>
                <td style="word-break: break-all;"><?php echo $user_data['user_skills']; ?></td>
              </tr>
              <tr>
                <td width="100">Joined : </td>
                <?php if ((strtotime($user_data['user_join_date'])) && ($user_data['user_join_date'] != '0000-00-00 00:00:00')) { ?>
                  <td><?php echo date('d - F - Y', strtotime($user_data['user_join_date'])); ?></td>
                <?php } else { ?>
                  <td></td>
                <?php } ?>
              </tr>
              <tr>
                <td width="100">Experience : </td>
                <td><?php echo $user_data['user_experience']; ?></td>
              </tr>
              <tr>
                <td><b>Personal</b></td>
                <td></td>
              </tr>
              <tr>
                <td width="100">Gender : </td>
                <td><?php echo $user_data['user_gender']; ?></td>
              </tr>
              <tr>
                <td width="100">Interests : </td>
                <td style="word-break: break-all;"><?php echo $user_data['user_hobbies']; ?></td>
              </tr>
              <tr>
                <td width="100">Place : </td>
                <td style="word-break: break-all;"><?php echo $user_data['user_place']; ?></td>
              </tr>
              <tr>
                <td width="100">Birthday : </td>
                <?php if ((strtotime($user_data['user_birthday_date'])) && ($user_data['user_birthday_date'] != '0000-00-00 00:00:00')) { ?>
                  <td><?php echo date('d - F', strtotime($user_data['user_birthday_date'])); ?></td>
                <?php } else { ?>
                  <td></td>
                <?php } ?>
              </tr>
              <tr>
                <td><b>Contact</b></td>
                <td></td>
              </tr>
              <tr>
                <td width="100">Home email : </td>
                <td><?php echo $user_data['user_home_email']; ?></td>
              </tr>
              <tr>
                <td width="100">Work email : </td>
                <td><?php echo $user_data['user_work_email']; ?></td>
              </tr>
              <tr>
                <td width="100">Mobile : </td>
                <td><?php echo $user_data['user_contact_no']; ?></td>
              </tr>
            </tbody>
          </table>
        </div>
      </div>
    </div>
  </div>
</div>